<template>
	<div>
		<button @click="submit">注册</button>
	</div>
</template>

<script>
import axios from 'axios'
export default {
	methods: {
		submit() {
			axios
				.post('http://127.0.0.1:3000/user/registry', {
					username: '宋宇',
					password: '123456',
				})
				.then((res) => {
					console.log(res)
				})
		},
	},
}
</script>

<style>
</style>